package com.mdlib.helper.app;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.WindowManager;

import com.ljlib.help.R;

/**
 * Created by librabin on 16/10/15.
 */

public class AppStart extends AppCompatActivity {

//    private LoginHelper mLoginHelper;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setContentView(R.layout.activity_start);
//        AccountModel.getInstance().getCache();
//        mLoginHelper = new LoginHelper(this, this);
        findViewById(R.id.start_layout).postDelayed(new Runnable() {
            @Override
            public void run() {
                handLogin();
            }
        }, 1000);


    }


    @Override
    protected void onDestroy() {
        super.onDestroy();
    }


    private void handLogin() {
//        String loginType = AccountModel.getInstance().getLoginType();
//        if (loginType == null) {
//            UIHelper.goLogin(AppStart.this, MDConstant.LOGIN_TYPE_NORMAL);
//        } else {
//            if (loginType == MDConstant.LOGIN_TYPE_LOCAL) {
//                String loginName = AccountModel.getInstance().getLoginName();
//                String loginPwd = AccountModel.getInstance().getLoginPwd();
//                if (!TextUtils.isEmpty(loginName) && !TextUtils.isEmpty(loginPwd)) {
//                    mLoginHelper.mdLogin(loginName, loginPwd);
//                }
//            }
//        }


    }


//    @Override
//    public void loginSucc() {
//
//    }
//
//    @Override
//    public void thridSucc(String msg) {
//
//    }
//
//    @Override
//    public void loginFail(String msg) {
//
//    }
}
